package cloud.smalla.exception;

/**
 * 功能描述
 * 权限异常
 *
 * @author 邱彦祥
 * 时间：2023-03-31 22:10
 */
public class AuthException extends RuntimeException {
    private Integer code;

    private String msg;

    public AuthException(Integer code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String getMessage() {
        return msg;
    }
}
